.class public Lcom/instagram/android/creation/b/al;
.super Lcom/instagram/e/b/b;
.source "FilterFragment.java"

# interfaces
.implements Lcom/instagram/android/creation/widget/g;
.implements Lcom/instagram/creation/photo/gl/NativeBridge$ImageProcessorDelegate;


# instance fields
.field private Z:F

.field private final a:Ljava/text/DecimalFormat;

.field private aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

.field private ab:Lcom/instagram/ui/a/d;

.field private ac:Lcom/instagram/android/creation/widget/RotationGestureController;

.field private ad:Lcom/instagram/creation/photo/gl/a;

.field private ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

.field private af:Landroid/os/Handler;

.field private ag:Z

.field private ah:I

.field private ai:Lcom/instagram/android/creation/b/bm;

.field private aj:Lcom/instagram/creation/base/ui/FilterPicker;

.field private ak:Lcom/instagram/android/creation/widget/ActionBarHighlightButton;

.field private al:I

.field private am:F

.field private an:Lcom/instagram/android/creation/widget/SliderView;

.field private ao:Landroid/view/ViewGroup;

.field private ap:Landroid/view/View;

.field private aq:Landroid/widget/TextView;

.field private ar:Landroid/view/View;

.field private as:Landroid/view/View;

.field private at:Landroid/view/ViewGroup;

.field private au:Z

.field private av:Landroid/view/View;

.field private aw:Landroid/view/animation/Animation;

.field private ax:Z

.field private b:Lcom/instagram/android/creation/widget/TiltShiftButton;

.field private c:Landroid/widget/Button;

.field private d:Landroid/widget/CompoundButton;

.field private e:Landroid/widget/CompoundButton;

.field private f:Lcom/instagram/creation/photo/gallery/c;

.field private g:Z

.field private h:Z

.field private i:I


# direct methods
.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 68
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 97
    new-instance v0, Ljava/text/DecimalFormat;

    const-string v1, "0.0\u00b0"

    invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->a:Ljava/text/DecimalFormat;

    .line 109
    iput v2, p0, Lcom/instagram/android/creation/b/al;->i:I

    .line 110
    iput v3, p0, Lcom/instagram/android/creation/b/al;->Z:F

    .line 112
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    .line 115
    new-instance v0, Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-direct {v0}, Lcom/instagram/creation/photo/gl/TiltShiftManager;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    .line 117
    new-instance v0, Lcom/instagram/android/creation/b/am;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/am;-><init>(Lcom/instagram/android/creation/b/al;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    .line 145
    iput-boolean v2, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    .line 146
    iput v2, p0, Lcom/instagram/android/creation/b/al;->ah:I

    .line 150
    iput v2, p0, Lcom/instagram/android/creation/b/al;->al:I

    .line 151
    iput v3, p0, Lcom/instagram/android/creation/b/al;->am:F

    .line 1087
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;F)F
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    iput p1, p0, Lcom/instagram/android/creation/b/al;->Z:F

    return p1
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;I)I
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    iput p1, p0, Lcom/instagram/android/creation/b/al;->i:I

    return p1
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;ZI)I
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 68
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/creation/b/al;->a(ZI)I

    move-result v0

    return v0
.end method

.method private a(ZI)I
    .locals 1
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x1

    .line 640
    if-eqz p1, :cond_1

    .line 641
    if-ne p2, v0, :cond_0

    .line 645
    :goto_0
    return v0

    .line 643
    :cond_0
    const/4 v0, 0x2

    goto :goto_0

    .line 645
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(IIIIZ)Landroid/graphics/Rect;
    .locals 7
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 925
    invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I

    move-result v4

    .line 926
    sub-int v5, p1, v4

    .line 927
    sub-int v6, p2, v4

    .line 929
    if-nez p4, :cond_0

    if-eqz p3, :cond_0

    move v0, p1

    move v1, p2

    move v2, p3

    move v3, p5

    .line 930
    invoke-static/range {v0 .. v6}, Lcom/instagram/creation/photo/b/i;->b(IIIZIII)Landroid/graphics/Rect;

    move-result-object v0

    .line 933
    :goto_0
    return-object v0

    :cond_0
    move v0, p1

    move v1, p2

    move v2, p4

    move v3, p5

    invoke-static/range {v0 .. v6}, Lcom/instagram/creation/photo/b/i;->a(IIIZIII)Landroid/graphics/Rect;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;)Lcom/instagram/android/creation/b/bm;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;Lcom/instagram/android/creation/b/bm;)Lcom/instagram/android/creation/b/bm;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    iput-object p1, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;Lcom/instagram/ui/a/d;)Lcom/instagram/ui/a/d;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    iput-object p1, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/al;->g(Z)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/al;ZZ)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 68
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/creation/b/al;->a(ZZ)V

    return-void
.end method

.method private a(ZZ)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 984
    if-eqz p1, :cond_0

    .line 985
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    iget v1, p0, Lcom/instagram/android/creation/b/al;->am:F

    invoke-virtual {v0, v1, p2}, Lcom/instagram/android/creation/widget/SliderView;->a(FZ)V

    .line 989
    :goto_0
    return-void

    .line 987
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p2}, Lcom/instagram/android/creation/widget/SliderView;->a(FZ)V

    goto :goto_0
.end method

.method private af()Lcom/instagram/pendingmedia/model/c;
    .locals 3

    .prologue
    .line 211
    invoke-static {}, Lcom/instagram/pendingmedia/b/a;->a()Lcom/instagram/pendingmedia/b/a;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "key"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/b/a;->a(Ljava/lang/String;)Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    return-object v0
.end method

.method private ag()V
    .locals 4

    .prologue
    .line 547
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    if-eqz v0, :cond_0

    .line 548
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->requestRender()V

    .line 551
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    if-eqz v0, :cond_1

    .line 552
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 553
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    .line 556
    :cond_1
    new-instance v0, Lcom/instagram/ui/a/d;

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/d;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    .line 557
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    sget v1, Lcom/facebook/ba;->processing:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/creation/b/al;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/d;->a(Ljava/lang/String;)V

    .line 558
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/d;->setCancelable(Z)V

    .line 561
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/creation/b/as;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/as;-><init>(Lcom/instagram/android/creation/b/al;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 570
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->ak()V

    .line 571
    return-void
.end method

.method private ah()V
    .locals 1

    .prologue
    .line 649
    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->tiltShiftRemoveMaskHighlight()V

    .line 650
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->requestRender()V

    .line 651
    return-void
.end method

.method private ai()V
    .locals 4

    .prologue
    .line 654
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/creation/b/at;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/at;-><init>(Lcom/instagram/android/creation/b/al;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 660
    return-void
.end method

.method private aj()V
    .locals 4

    .prologue
    .line 737
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/creation/b/az;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/az;-><init>(Lcom/instagram/android/creation/b/al;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 749
    return-void
.end method

.method private ak()V
    .locals 3

    .prologue
    .line 753
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    new-instance v1, Lcom/instagram/android/creation/a/a;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/a/a;-><init>(Lcom/instagram/android/creation/b/al;)V

    const/4 v2, -0x1

    invoke-virtual {v0, v1, v2}, Lcom/instagram/creation/photo/gl/a;->a(Lcom/instagram/creation/photo/gl/i;I)V

    .line 755
    return-void
.end method

.method private al()Ljava/lang/String;
    .locals 1

    .prologue
    .line 790
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->am()Lcom/instagram/creation/photo/gallery/c;

    move-result-object v0

    invoke-interface {v0}, Lcom/instagram/creation/photo/gallery/c;->a()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private am()Lcom/instagram/creation/photo/gallery/c;
    .locals 3

    .prologue
    .line 794
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->f:Lcom/instagram/creation/photo/gallery/c;

    if-nez v0, :cond_0

    .line 795
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "filePath"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 796
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/j;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v1, v0, v2}, Lcom/instagram/creation/photo/gallery/ImageManager;->a(Landroid/content/ContentResolver;Landroid/net/Uri;I)Lcom/instagram/creation/photo/gallery/d;

    move-result-object v1

    .line 798
    invoke-interface {v1, v0}, Lcom/instagram/creation/photo/gallery/d;->a(Landroid/net/Uri;)Lcom/instagram/creation/photo/gallery/c;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->f:Lcom/instagram/creation/photo/gallery/c;

    .line 800
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->f:Lcom/instagram/creation/photo/gallery/c;

    return-object v0
.end method

.method private an()I
    .locals 1

    .prologue
    .line 940
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->am()Lcom/instagram/creation/photo/gallery/c;

    move-result-object v0

    invoke-interface {v0}, Lcom/instagram/creation/photo/gallery/c;->f()I

    move-result v0

    return v0
.end method

.method private ao()I
    .locals 1

    .prologue
    .line 944
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->am()Lcom/instagram/creation/photo/gallery/c;

    move-result-object v0

    invoke-interface {v0}, Lcom/instagram/creation/photo/gallery/c;->e()I

    move-result v0

    return v0
.end method

.method private ap()Z
    .locals 1

    .prologue
    .line 1013
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/b/a;->c()Z

    move-result v0

    return v0
.end method

.method static synthetic b(Lcom/instagram/android/creation/b/al;I)I
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    iput p1, p0, Lcom/instagram/android/creation/b/al;->al:I

    return p1
.end method

.method static synthetic b(Lcom/instagram/android/creation/b/al;)Lcom/instagram/ui/a/d;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/creation/b/al;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/al;->b(Z)V

    return-void
.end method

.method private b(Z)V
    .locals 1
    .parameter

    .prologue
    .line 809
    iput-boolean p1, p0, Lcom/instagram/android/creation/b/al;->h:Z

    .line 810
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/a;->b()V

    .line 811
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/creation/b/al;)Landroid/view/animation/Animation;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aw:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/creation/b/al;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/al;->e(I)V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/creation/b/al;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    iput-boolean p1, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    return p1
.end method

.method static synthetic d(Lcom/instagram/android/creation/b/al;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ar:Landroid/view/View;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/creation/b/al;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 68
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/al;->f(I)V

    return-void
.end method

.method private e(I)V
    .locals 4
    .parameter

    .prologue
    .line 704
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/bm;->dismiss()V

    .line 705
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    .line 706
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    const/16 v1, 0xca0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 710
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->getRenderMode()I

    move-result v0

    if-nez v0, :cond_0

    .line 711
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setRenderMode(I)V

    .line 713
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/creation/b/ay;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/creation/b/ay;-><init>(Lcom/instagram/android/creation/b/al;I)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 722
    :goto_0
    return-void

    .line 720
    :cond_0
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/al;->f(I)V

    goto :goto_0
.end method

.method static synthetic e(Lcom/instagram/android/creation/b/al;)Z
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->au:Z

    return v0
.end method

.method static synthetic f(Lcom/instagram/android/creation/b/al;)Lcom/instagram/android/creation/widget/RotationGestureController;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ac:Lcom/instagram/android/creation/widget/RotationGestureController;

    return-object v0
.end method

.method private f(I)V
    .locals 2
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 725
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/a;->a(Z)V

    .line 726
    iput-boolean v1, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    .line 727
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/al;->g(I)V

    .line 728
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->aj()V

    .line 729
    return-void
.end method

.method private g(I)V
    .locals 3
    .parameter

    .prologue
    .line 849
    iput p1, p0, Lcom/instagram/android/creation/b/al;->ah:I

    .line 850
    invoke-static {p1}, Lcom/instagram/creation/photo/gl/NativeBridge;->setTiltShiftMode(I)V

    .line 851
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    iget v2, p0, Lcom/instagram/android/creation/b/al;->ah:I

    invoke-direct {p0, v1, v2}, Lcom/instagram/android/creation/b/al;->a(ZI)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/TiltShiftButton;->setState(I)V

    .line 852
    return-void
.end method

.method private g(Z)V
    .locals 2
    .parameter

    .prologue
    .line 997
    iput-boolean p1, p0, Lcom/instagram/android/creation/b/al;->g:Z

    .line 998
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->g:Z

    invoke-virtual {v0, v1}, Lcom/instagram/m/b/a;->a(Z)V

    .line 999
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/a;->c()V

    .line 1000
    return-void
.end method

.method static synthetic g(Lcom/instagram/android/creation/b/al;)Z
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    return v0
.end method

.method static synthetic h(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/TiltShiftManager;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    return-object v0
.end method

.method static synthetic i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    return-object v0
.end method

.method static synthetic j(Lcom/instagram/android/creation/b/al;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic k(Lcom/instagram/android/creation/b/al;)Lcom/instagram/android/creation/widget/TiltShiftButton;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    return-object v0
.end method

.method static synthetic l(Lcom/instagram/android/creation/b/al;)V
    .locals 0
    .parameter

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->ah()V

    return-void
.end method

.method static synthetic m(Lcom/instagram/android/creation/b/al;)V
    .locals 0
    .parameter

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->ag()V

    return-void
.end method

.method static synthetic n(Lcom/instagram/android/creation/b/al;)I
    .locals 1
    .parameter

    .prologue
    .line 68
    iget v0, p0, Lcom/instagram/android/creation/b/al;->i:I

    return v0
.end method

.method static synthetic o(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/a;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    return-object v0
.end method

.method static synthetic p(Lcom/instagram/android/creation/b/al;)Lcom/instagram/android/creation/widget/ActionBarHighlightButton;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ak:Lcom/instagram/android/creation/widget/ActionBarHighlightButton;

    return-object v0
.end method

.method static synthetic q(Lcom/instagram/android/creation/b/al;)F
    .locals 1
    .parameter

    .prologue
    .line 68
    iget v0, p0, Lcom/instagram/android/creation/b/al;->Z:F

    return v0
.end method

.method static synthetic r(Lcom/instagram/android/creation/b/al;)Ljava/text/DecimalFormat;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->a:Ljava/text/DecimalFormat;

    return-object v0
.end method

.method static synthetic s(Lcom/instagram/android/creation/b/al;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aq:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic t(Lcom/instagram/android/creation/b/al;)I
    .locals 1
    .parameter

    .prologue
    .line 68
    iget v0, p0, Lcom/instagram/android/creation/b/al;->ah:I

    return v0
.end method

.method static synthetic u(Lcom/instagram/android/creation/b/al;)Lcom/instagram/pendingmedia/model/c;
    .locals 1
    .parameter

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->af()Lcom/instagram/pendingmedia/model/c;

    move-result-object v0

    return-object v0
.end method

.method static synthetic v(Lcom/instagram/android/creation/b/al;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->c:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic w(Lcom/instagram/android/creation/b/al;)Landroid/widget/CompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->d:Landroid/widget/CompoundButton;

    return-object v0
.end method

.method static synthetic x(Lcom/instagram/android/creation/b/al;)Landroid/widget/CompoundButton;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->e:Landroid/widget/CompoundButton;

    return-object v0
.end method

.method static synthetic y(Lcom/instagram/android/creation/b/al;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 68
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->av:Landroid/view/View;

    return-object v0
.end method

.method static synthetic z(Lcom/instagram/android/creation/b/al;)V
    .locals 0
    .parameter

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->ai()V

    return-void
.end method


# virtual methods
.method public X()Z
    .locals 2

    .prologue
    .line 577
    iget v0, p0, Lcom/instagram/android/creation/b/al;->Z:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public Y()Z
    .locals 1

    .prologue
    .line 585
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ao:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public Z()Z
    .locals 2

    .prologue
    const/4 v0, 0x0

    .line 589
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->Y()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 590
    invoke-virtual {p0, v0}, Lcom/instagram/android/creation/b/al;->a(Z)V

    .line 591
    const/4 v0, 0x1

    .line 593
    :cond_0
    return v0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 254
    sget v0, Lcom/facebook/ax;->fragment_filter:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()V
    .locals 2

    .prologue
    .line 525
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    if-eqz v0, :cond_0

    .line 526
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setVisibility(I)V

    .line 529
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    if-eqz v0, :cond_1

    .line 532
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->getPhotoFilters()[Lcom/instagram/creation/photo/gl/NativeFilter;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setFilters([Lcom/instagram/creation/base/f;)V

    .line 533
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    new-instance v1, Lcom/instagram/android/creation/b/ar;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ar;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setOnFilterChangedListener(Lcom/instagram/creation/base/ui/b;)V

    .line 542
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    iget v1, p0, Lcom/instagram/android/creation/b/al;->al:I

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setSelectedFilterIndex(I)V

    .line 544
    :cond_1
    return-void
.end method

.method public a(D)V
    .locals 4
    .parameter

    .prologue
    .line 1027
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    const-wide v1, 0x401921fb54442d18L

    div-double v1, p1, v1

    const/4 v3, 0x1

    invoke-virtual {v0, v1, v2, v3}, Lcom/instagram/android/creation/widget/SliderView;->a(DZ)V

    .line 1028
    return-void
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v1, -0x1

    .line 774
    if-eq p2, v1, :cond_0

    .line 780
    :goto_0
    return-void

    .line 778
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setResult(I)V

    .line 779
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->finish()V

    goto :goto_0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 169
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 171
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->ap()Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/al;->g:Z

    .line 173
    if-eqz p1, :cond_0

    .line 174
    const-string v0, "luxEnabled"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/al;->h:Z

    .line 175
    const-string v0, "tiltEnabled"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    .line 176
    const-string v0, "tiltMode"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/al;->ah:I

    .line 177
    const-string v0, "tiltManager"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/photo/gl/TiltShiftManager;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    .line 178
    const-string v0, "rotation"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/al;->i:I

    .line 179
    const-string v0, "selectedFilter"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/al;->al:I

    .line 180
    const-string v0, "rotationTweakAngle"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getFloat(Ljava/lang/String;)F

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/al;->Z:F

    .line 181
    const-string v0, "showStraighteningUI"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/al;->au:Z

    .line 187
    :cond_0
    invoke-static {p0}, Lcom/instagram/creation/photo/gl/NativeBridge;->setMasterTextureDelegate(Lcom/instagram/creation/photo/gl/NativeBridge$ImageProcessorDelegate;)V

    .line 192
    new-instance v0, Lcom/instagram/android/creation/widget/RotationGestureController;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/widget/RotationGestureController;-><init>(Lcom/instagram/android/creation/widget/g;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ac:Lcom/instagram/android/creation/widget/RotationGestureController;

    .line 194
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "photoAngle"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getFloat(Ljava/lang/String;)F

    move-result v0

    iput v0, p0, Lcom/instagram/android/creation/b/al;->am:F

    .line 195
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x10a0001

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->aw:Landroid/view/animation/Animation;

    .line 196
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 7
    .parameter
    .parameter

    .prologue
    const/16 v6, 0xd7

    const/16 v5, 0x8

    const/4 v4, 0x0

    .line 260
    new-instance v0, Lcom/instagram/android/creation/b/bp;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/creation/b/bp;-><init>(Lcom/instagram/android/creation/b/al;Lcom/instagram/android/creation/b/am;)V

    new-array v1, v4, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/b/bp;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 265
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    const/16 v1, 0xca1

    const-wide/16 v2, 0x5dc

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 267
    sget v0, Lcom/facebook/aw;->fragment_filter_gl_view:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    .line 268
    sget v0, Lcom/facebook/aw;->loading_cover_for_surface_view:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->av:Landroid/view/View;

    .line 270
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/k;->b(Landroid/content/Context;)I

    move-result v0

    const/16 v1, 0x140

    if-ne v0, v1, :cond_0

    .line 271
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    .line 272
    iput v6, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 273
    iput v6, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 274
    iget-object v1, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v1, v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 277
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    iget-object v1, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->a(Landroid/opengl/GLSurfaceView;)V

    .line 278
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    new-instance v1, Lcom/instagram/android/creation/b/ax;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ax;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 294
    new-instance v0, Lcom/instagram/android/creation/b/be;

    invoke-direct {v0, p0}, Lcom/instagram/android/creation/b/be;-><init>(Lcom/instagram/android/creation/b/al;)V

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    .line 302
    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->getLuxSupported()Z

    move-result v0

    if-nez v0, :cond_2

    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->getTiltShiftSupported()Z

    move-result v0

    if-nez v0, :cond_2

    .line 303
    sget v0, Lcom/facebook/aw;->icon_bar:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const/high16 v1, 0x4100

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setWeightSum(F)V

    .line 312
    :cond_1
    :goto_0
    sget v0, Lcom/facebook/aw;->button_toggle_borders:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CompoundButton;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->e:Landroid/widget/CompoundButton;

    .line 313
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->e:Landroid/widget/CompoundButton;

    new-instance v1, Lcom/instagram/android/creation/b/bf;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bf;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 319
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->e:Landroid/widget/CompoundButton;

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->g:Z

    invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setChecked(Z)V

    .line 324
    sget v0, Lcom/facebook/aw;->button_tiltshift_menu:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/TiltShiftButton;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    .line 325
    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->getTiltShiftSupported()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 326
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    new-instance v1, Lcom/instagram/android/creation/b/bg;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bg;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/TiltShiftButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 345
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    invoke-virtual {v0, v4}, Lcom/instagram/android/creation/widget/TiltShiftButton;->setVisibility(I)V

    .line 349
    :goto_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    iget v2, p0, Lcom/instagram/android/creation/b/al;->ah:I

    invoke-direct {p0, v1, v2}, Lcom/instagram/android/creation/b/al;->a(ZI)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/TiltShiftButton;->setState(I)V

    .line 354
    sget v0, Lcom/facebook/aw;->fragment_filter_filter_picker:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/base/ui/FilterPicker;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    .line 359
    sget v0, Lcom/facebook/aw;->button_accept:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/creation/b/bh;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bh;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 389
    sget v0, Lcom/facebook/aw;->button_toggle_lux:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CompoundButton;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->d:Landroid/widget/CompoundButton;

    .line 390
    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->getLuxSupported()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 391
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->d:Landroid/widget/CompoundButton;

    new-instance v1, Lcom/instagram/android/creation/b/bj;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bj;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 397
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->d:Landroid/widget/CompoundButton;

    invoke-virtual {v0, v4}, Landroid/widget/CompoundButton;->setVisibility(I)V

    .line 406
    :goto_2
    sget v0, Lcom/facebook/aw;->button_rotate:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->c:Landroid/widget/Button;

    .line 407
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->c:Landroid/widget/Button;

    new-instance v1, Lcom/instagram/android/creation/b/bk;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bk;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 427
    sget v0, Lcom/facebook/aw;->button_back:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/creation/b/bl;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bl;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 438
    sget v0, Lcom/facebook/aw;->button_toggle_photo_straightener:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/ActionBarHighlightButton;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ak:Lcom/instagram/android/creation/widget/ActionBarHighlightButton;

    .line 440
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ak:Lcom/instagram/android/creation/widget/ActionBarHighlightButton;

    new-instance v1, Lcom/instagram/android/creation/b/an;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/an;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/ActionBarHighlightButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 453
    sget v0, Lcom/facebook/aw;->tweak_angle_textview:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->aq:Landroid/widget/TextView;

    .line 454
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aq:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/instagram/android/creation/b/al;->a:Ljava/text/DecimalFormat;

    iget v2, p0, Lcom/instagram/android/creation/b/al;->Z:F

    float-to-double v2, v2

    invoke-virtual {v1, v2, v3}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 458
    sget v0, Lcom/facebook/aw;->fragment_filter_photo_straighten_tools:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ao:Landroid/view/ViewGroup;

    .line 460
    sget v0, Lcom/facebook/aw;->photo_straighten_slider:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/creation/widget/SliderView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    .line 462
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    new-instance v1, Lcom/instagram/android/creation/b/ao;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ao;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/creation/widget/SliderView;->setOnSlideListener(Lcom/instagram/android/creation/widget/h;)V

    .line 494
    sget v0, Lcom/facebook/aw;->button_accept_straightening:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->as:Landroid/view/View;

    .line 496
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->as:Landroid/view/View;

    new-instance v1, Lcom/instagram/android/creation/b/ap;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/ap;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 507
    sget v0, Lcom/facebook/aw;->button_cancel_straightening_tweak:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ap:Landroid/view/View;

    .line 509
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ap:Landroid/view/View;

    new-instance v1, Lcom/instagram/android/creation/b/aq;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/aq;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 516
    sget v0, Lcom/facebook/aw;->action_bar_camera_controls:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->at:Landroid/view/ViewGroup;

    .line 519
    sget v0, Lcom/facebook/aw;->straighten_grid_overlay:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ar:Landroid/view/View;

    .line 521
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->ad()V

    .line 522
    return-void

    .line 304
    :cond_2
    invoke-static {}, Lcom/instagram/creation/photo/gl/NativeBridge;->getLuxSupported()Z

    move-result v0

    if-nez v0, :cond_1

    .line 305
    sget v0, Lcom/facebook/aw;->lux_separator:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    .line 306
    sget v0, Lcom/facebook/aw;->icon_bar:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const/high16 v1, 0x40c0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setWeightSum(F)V

    goto/16 :goto_0

    .line 347
    :cond_3
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    invoke-virtual {v0, v5}, Lcom/instagram/android/creation/widget/TiltShiftButton;->setVisibility(I)V

    goto/16 :goto_1

    .line 399
    :cond_4
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->d:Landroid/widget/CompoundButton;

    invoke-virtual {v0, v5}, Landroid/widget/CompoundButton;->setVisibility(I)V

    goto/16 :goto_2
.end method

.method public a(Z)V
    .locals 3
    .parameter

    .prologue
    const/4 v1, 0x4

    const/4 v2, 0x0

    .line 601
    iput-boolean p1, p0, Lcom/instagram/android/creation/b/al;->au:Z

    .line 602
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->au:Z

    if-eqz v0, :cond_0

    .line 603
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ao:Landroid/view/ViewGroup;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 604
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setVisibility(I)V

    .line 605
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->at:Landroid/view/ViewGroup;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 611
    :goto_0
    return-void

    .line 607
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ao:Landroid/view/ViewGroup;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 608
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-virtual {v0, v2}, Lcom/instagram/creation/base/ui/FilterPicker;->setVisibility(I)V

    .line 609
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->at:Landroid/view/ViewGroup;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_0
.end method

.method public aa()Lcom/instagram/android/creation/b/bm;
    .locals 4

    .prologue
    const/4 v3, -0x2

    .line 664
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    if-nez v0, :cond_0

    .line 666
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->overlay_tiltshift:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 667
    new-instance v1, Lcom/instagram/android/creation/b/bm;

    invoke-direct {v1, p0, v0, v3, v3}, Lcom/instagram/android/creation/b/bm;-><init>(Lcom/instagram/android/creation/b/al;Landroid/view/View;II)V

    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    .line 668
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 672
    sget v1, Lcom/facebook/aw;->overlay_tiltshift_button_circle:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/creation/b/au;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/b/au;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 679
    sget v1, Lcom/facebook/aw;->overlay_tiltshift_button_line:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/creation/b/av;

    invoke-direct {v2, p0}, Lcom/instagram/android/creation/b/av;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 686
    sget v1, Lcom/facebook/aw;->overlay_tiltshift_button_off:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/creation/b/aw;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/aw;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 700
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    return-object v0
.end method

.method public ab()V
    .locals 2

    .prologue
    .line 759
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/android/creation/b/bb;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bb;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 769
    return-void
.end method

.method public ac()F
    .locals 1

    .prologue
    .line 966
    iget v0, p0, Lcom/instagram/android/creation/b/al;->Z:F

    return v0
.end method

.method public ad()V
    .locals 3

    .prologue
    .line 992
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->au:Z

    invoke-virtual {p0, v0}, Lcom/instagram/android/creation/b/al;->a(Z)V

    .line 993
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    iget v1, p0, Lcom/instagram/android/creation/b/al;->Z:F

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/creation/widget/SliderView;->a(FZ)V

    .line 994
    return-void
.end method

.method public ae()V
    .locals 1

    .prologue
    .line 1017
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    if-eqz v0, :cond_1

    .line 1018
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1019
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 1021
    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    .line 1023
    :cond_1
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 1126
    const-string v0, "filter"

    return-object v0
.end method

.method public e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 200
    const-string v0, "luxEnabled"

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->h:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 201
    const-string v0, "tiltEnabled"

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 202
    const-string v0, "tiltMode"

    iget v1, p0, Lcom/instagram/android/creation/b/al;->ah:I

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 203
    const-string v0, "tiltManager"

    iget-object v1, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 204
    const-string v0, "selectedFilter"

    iget v1, p0, Lcom/instagram/android/creation/b/al;->al:I

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 205
    const-string v0, "rotation"

    iget v1, p0, Lcom/instagram/android/creation/b/al;->i:I

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 206
    const-string v0, "rotationTweakAngle"

    iget v1, p0, Lcom/instagram/android/creation/b/al;->Z:F

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putFloat(Ljava/lang/String;F)V

    .line 207
    const-string v0, "showStraighteningUI"

    iget-boolean v1, p0, Lcom/instagram/android/creation/b/al;->au:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 208
    return-void
.end method

.method public finishedDrawing()V
    .locals 2

    .prologue
    .line 892
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->ax:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->av:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-eq v0, v1, :cond_0

    .line 893
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/creation/b/bd;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bd;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 903
    :cond_0
    return-void
.end method

.method public g_()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 615
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 617
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 619
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->a(Landroid/opengl/GLSurfaceView;)V

    .line 620
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    .line 621
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->ad:Lcom/instagram/creation/photo/gl/a;

    .line 622
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->b:Lcom/instagram/android/creation/widget/TiltShiftButton;

    .line 623
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->c:Landroid/widget/Button;

    .line 624
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->d:Landroid/widget/CompoundButton;

    .line 625
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->e:Landroid/widget/CompoundButton;

    .line 626
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/base/ui/FilterPicker;->setOnFilterChangedListener(Lcom/instagram/creation/base/ui/b;)V

    .line 627
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    .line 628
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->ak:Lcom/instagram/android/creation/widget/ActionBarHighlightButton;

    .line 629
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->an:Lcom/instagram/android/creation/widget/SliderView;

    .line 630
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->ao:Landroid/view/ViewGroup;

    .line 631
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->ap:Landroid/view/View;

    .line 632
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->aq:Landroid/widget/TextView;

    .line 633
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->as:Landroid/view/View;

    .line 634
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->ar:Landroid/view/View;

    .line 635
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->av:Landroid/view/View;

    .line 636
    iput-object v1, p0, Lcom/instagram/android/creation/b/al;->at:Landroid/view/ViewGroup;

    .line 637
    return-void
.end method

.method public getBordersEnabled()Z
    .locals 1

    .prologue
    .line 971
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->g:Z

    return v0
.end method

.method public getCameraOrientation()I
    .locals 2

    .prologue
    .line 958
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "cameraRotation"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 959
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->al()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/photo/gallery/ImageManager;->b(Ljava/lang/String;)I

    move-result v0

    .line 962
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getCroppingRect()Landroid/graphics/Rect;
    .locals 6

    .prologue
    .line 907
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "cropRect"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 908
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "cropRect"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/graphics/Rect;

    .line 918
    :goto_0
    return-object v0

    .line 909
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "cameraRotation"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 910
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->ao()I

    move-result v1

    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->an()I

    move-result v2

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v3, "cameraRotation"

    invoke-virtual {v0, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v3

    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->al()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/creation/photo/gallery/ImageManager;->b(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->getMirrorMasterTexture()Z

    move-result v5

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/creation/b/al;->a(IIIIZ)Landroid/graphics/Rect;

    move-result-object v0

    goto :goto_0

    .line 918
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getCurrentFilter()I
    .locals 1

    .prologue
    .line 1004
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aj:Lcom/instagram/creation/base/ui/FilterPicker;

    invoke-virtual {v0}, Lcom/instagram/creation/base/ui/FilterPicker;->getSelectedFilter()Lcom/instagram/creation/base/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/base/f;->getId()I

    move-result v0

    return v0
.end method

.method public getCurrentRotation()I
    .locals 1

    .prologue
    .line 1009
    iget v0, p0, Lcom/instagram/android/creation/b/al;->i:I

    return v0
.end method

.method public getLuxEnabled()Z
    .locals 1

    .prologue
    .line 805
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->h:Z

    return v0
.end method

.method public getMasterTexturePath()Ljava/lang/String;
    .locals 4

    .prologue
    .line 784
    invoke-direct {p0}, Lcom/instagram/android/creation/b/al;->al()Ljava/lang/String;

    move-result-object v0

    .line 785
    const-string v1, "FilterFragment"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "loading full path: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 786
    return-object v0
.end method

.method public getMirrorMasterTexture()Z
    .locals 2

    .prologue
    .line 820
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "mirrorMedia"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public getTiltShiftEnabled()Z
    .locals 1

    .prologue
    .line 815
    iget-boolean v0, p0, Lcom/instagram/android/creation/b/al;->ag:Z

    return v0
.end method

.method public getTiltShiftMode()I
    .locals 1

    .prologue
    .line 845
    iget v0, p0, Lcom/instagram/android/creation/b/al;->ah:I

    return v0
.end method

.method public getTiltShiftOriginX()F
    .locals 1

    .prologue
    .line 825
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->c()F

    move-result v0

    return v0
.end method

.method public getTiltShiftOriginY()F
    .locals 1

    .prologue
    .line 830
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->d()F

    move-result v0

    return v0
.end method

.method public getTiltShiftRadius()F
    .locals 1

    .prologue
    .line 840
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->b()F

    move-result v0

    return v0
.end method

.method public getTiltShiftTheta()F
    .locals 1

    .prologue
    .line 835
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->a()F

    move-result v0

    return v0
.end method

.method public getTotalRotation()F
    .locals 2

    .prologue
    .line 581
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->getCurrentRotation()I

    move-result v0

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->getCameraOrientation()I

    move-result v1

    add-int/2addr v0, v1

    int-to-float v0, v0

    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->ac()F

    move-result v1

    add-float/2addr v0, v1

    return v0
.end method

.method public isCameraOrientedCrop()Z
    .locals 2

    .prologue
    .line 949
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "cameraRotation"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public mirrorTiltShift()V
    .locals 1

    .prologue
    .line 856
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ae:Lcom/instagram/creation/photo/gl/TiltShiftManager;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/TiltShiftManager;->f()V

    .line 857
    return-void
.end method

.method public onFinishLoadMasterTexture()V
    .locals 2

    .prologue
    .line 865
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    const/16 v1, 0xca1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 867
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->af:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/creation/b/bc;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bc;-><init>(Lcom/instagram/android/creation/b/al;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 884
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/creation/b/al;->ax:Z

    .line 885
    return-void
.end method

.method public onStartLoadMasterTexture()V
    .locals 0

    .prologue
    .line 861
    return-void
.end method

.method public w()V
    .locals 2

    .prologue
    .line 238
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 241
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 242
    invoke-virtual {p0}, Lcom/instagram/android/creation/b/al;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 246
    invoke-static {p0}, Lcom/instagram/creation/photo/gl/NativeBridge;->setMasterTextureDelegate(Lcom/instagram/creation/photo/gl/NativeBridge$ImageProcessorDelegate;)V

    .line 248
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->onResume()V

    .line 249
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 232
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 233
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->aa:Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->onPause()V

    .line 234
    return-void
.end method

.method public y()V
    .locals 1

    .prologue
    .line 216
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 219
    invoke-static {p0}, Lcom/instagram/creation/photo/gl/NativeBridge;->removeMasterTextureDelegate(Lcom/instagram/creation/photo/gl/NativeBridge$ImageProcessorDelegate;)V

    .line 221
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 222
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    invoke-virtual {v0}, Lcom/instagram/ui/a/d;->dismiss()V

    .line 224
    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/creation/b/al;->ab:Lcom/instagram/ui/a/d;

    .line 225
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/bm;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 226
    iget-object v0, p0, Lcom/instagram/android/creation/b/al;->ai:Lcom/instagram/android/creation/b/bm;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/bm;->dismiss()V

    .line 228
    :cond_1
    return-void
.end method
